Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |environment

process/environment::|environment


Usage

|environment(variables, working_directory, expand_variables, clear_env)

Parameters

↳ variables: StringMap (std/data/string_map::StringMap)
↳ working_directory: Option<string>
↳ expand_variables: bool
↳ clear_env: bool

Return

Environment


Build an Environment value from explicit parameters.

  • variables: key-value pairs to expose to the subprocess.
  • working_directory: optional working directory.
  • expand_variables: expand ${VAR} references in variable values.
  • clear_env: inherit no variables from the parent process.